<template>
  <div />
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router';

const route = useRoute();
const router = useRouter();

// const { params, query } = route;
// const { path } = params;

// router.replace({ path: '/' + path, query });

const { query } = route;
const _path = query.path;

if (_path) {
  router.replace(_path);
} else {
  router.replace('/');
}

defineOptions({
  name: 'BaseRedirect',
  inheritAttrs: false,
});
</script>
